package com.liugh.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

//用于ES搜索文件
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(indexName="zhongche",type="standarditem",indexStoreType="fs",shards=5,replicas=1,refreshInterval="-1")
public class ESModel implements Serializable {
    @Id
    private int id;

    /**
     * 文件名
     */
    private String title;

    /**
     * 上传者
     */
    private String author;

    /**
     * PDF转文字以后的内容
     */
    private String content;
}
